package com.control;

import java.awt.Dimension;
import java.awt.Toolkit;

import javax.swing.JFrame;

public class Controller extends JFrame{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public Controller() {
		this.setTitle("泡泡龙游戏");
		this.setSize(400, 500);
		Dimension screenSize=Toolkit.getDefaultToolkit().getScreenSize();
		int screenX=(int)screenSize.getWidth();
		int screenY=(int)screenSize.getHeight();
		int x=(int)((screenX-this.getWidth())/2);
		int y=(int)((screenY-this.getHeight())/2);
		this.setLocation(x, y);
		
		
		
		this.setVisible(true);
		setDefaultCloseOperation(EXIT_ON_CLOSE);
	}
	
	public static void main(String[] args) {
		new Controller();
	}
}
